package com.dg.acb.utils;

public interface ProgressListener<T> {
    long progressInterval();

    void onStatus(int state, long arg1, long arg2, T data);

    /**
     * When Exception happens, this method will be called.
     * 
     * @param errorCode Error code
     * @param errorMsg Error message.
     */
    void onException(int errorCode, String errorMsg);
}
